<?php
/**
 *
 *
 */
class SmtpSetting extends AppModel
{
    public $name       = "SmtpSetting";
    public $primaryKey = "smtpId";


    public function get_active_smtp()
    {
        return self::find('first',
            array('conditions' =>
                array('active' => 1)
            )
        );
    }

    public function get_smtp(array $conditions, $marker = "all")
    {
        return self::find($marker, array('conditions' => $conditions));
    }
}
?>